.class public Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "FeaturedGridViewWrapper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/view/FeaturedGridViewWrapper;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "GridAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Landroidx/recyclerview/widget/RecyclerView$Adapter<",
        "Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;",
        ">;"
    }
.end annotation


# instance fields
.field protected a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "TT;>;"
        }
    .end annotation
.end field

.field protected b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

.field protected c:Lcom/estrongs/android/ui/drag/a;

.field final synthetic d:Lcom/estrongs/android/view/FeaturedGridViewWrapper;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/view/FeaturedGridViewWrapper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->d:Lcom/estrongs/android/view/FeaturedGridViewWrapper;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V

    .line 2
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "TT;>;"
        }
    .end annotation

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    return-object v0
.end method

.method public a(Lcom/estrongs/android/ui/drag/a;)V
    .locals 0

    .line 20
    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->c:Lcom/estrongs/android/ui/drag/a;

    return-void
.end method

.method public a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V
    .locals 3

    .line 1
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0800e3

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v2, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$a;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$a;-><init>(Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 4
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setFocusable(Z)V

    .line 5
    :cond_0
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    iput-object v0, p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;->e:Ljava/lang/Object;

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->c:Lcom/estrongs/android/ui/drag/a;

    if-eqz v0, :cond_1

    .line 7
    iget-object v2, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    check-cast v2, Lcom/estrongs/android/ui/drag/DragGrid;

    .line 8
    invoke-virtual {v2, v0}, Lcom/estrongs/android/ui/drag/DragGrid;->setDragController(Lcom/estrongs/android/ui/drag/a;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->c:Lcom/estrongs/android/ui/drag/a;

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/drag/a;->b(Lcom/estrongs/android/ui/drag/g;)V

    .line 10
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {v0, p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    .line 11
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setFocusable(Z)V

    .line 12
    iget-object v0, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$b;

    invoke-direct {v1, p0, p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$b;-><init>(Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->d:Lcom/estrongs/android/view/FeaturedGridViewWrapper;

    iget-object v0, v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->j:Lcom/estrongs/android/view/FeaturedGridViewWrapper$d;

    if-eqz v0, :cond_2

    .line 14
    iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    new-instance v0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$c;

    invoke-direct {v0, p0, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter$c;-><init>(Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;I)V

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    goto :goto_0

    .line 15
    :cond_2
    iget-object p1, p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    :goto_0
    return-void
.end method

.method public a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;)V
    .locals 0

    .line 19
    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "TT;>;)V"
        }
    .end annotation

    .line 16
    iput-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    .line 17
    invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    return-void
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)TT;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    if-eqz v0, :cond_1

    if-ltz p1, :cond_1

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt p1, v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return v0

    .line 2
    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public bridge synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
    .locals 0

    .line 1
    check-cast p1, Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->a(Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;I)V

    return-void
.end method

.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
    .locals 0

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object p1

    return-object p1
.end method

.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;
    .locals 0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a()Landroid/view/View;

    move-result-object p1

    .line 3
    iget-object p2, p0, Lcom/estrongs/android/view/FeaturedGridViewWrapper$GridAdapter;->b:Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;

    invoke-interface {p2, p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper$b;->a(Landroid/view/View;)Lcom/estrongs/android/view/FeaturedGridViewWrapper$BaseViewHolder;

    move-result-object p1

    return-object p1
.end method
